import Vue from 'vue'
import VueCookies from 'vue-cookies'
import router from './router'
import store from './store'
import VueRouter from 'vue-router'
import App from './App.vue'

import fastClick from 'fastclick'

import './assets/style/init.css'
import './assets/style/border.css'
import './assets/style/main.css'
import './assets/style/fontIcon/iconfont.css'
// import echarts from 'echarts'
// Vue.prototype.$echarts = echarts

// import VConsole from 'vconsole'
// new VConsole(); //用于移动端测试

//解决ios 点击多次input才能生效的问题
fastClick.prototype.focus = function (targetElement) {
  let length;
  if (targetElement.setSelectionRange && targetElement.type.indexOf('date') !== 0 && targetElement.type !== 'time' && targetElement.type !== 'month') {
    length = targetElement.value.length;
    targetElement.focus();
    targetElement.setSelectionRange(length, length);
  } else {
    targetElement.focus();
  }
};//解决ios 点击多次input才能生效的问题 end

fastClick.attach(document.body)

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')

